package com.frontop.system.modules.app.service;

import com.frontop.system.modules.app.model.FileDocument;

import java.io.OutputStream;
import java.util.Optional;

/**
 * @author YangBoss
 * @title: FileServiceImpl
 * @projectName frontop-ao
 * @description: TODO
 * @date 2022/6/22 15:05
 */
public interface MongoFileService {
    Optional<FileDocument> getFileById(String id);

    byte[] downloadFile(String objectId, OutputStream out) throws Exception;
}
